package com.boat.starter.p6spy.logging.impl;

import com.boat.starter.p6spy.logging.SqlFormatter;

/**
 * 格式化为单行sql
 * 
 * @author 周江
 *
 */
public class SingleLineSqlFormatter implements SqlFormatter {

	@Override
	public String format(String sql) {
		return sql.replaceAll("[\\s\n ]+", " ");
	}

}
